﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
    public class PostDetailMapping
    {
        public static PostDetail ConvertToEntity(ViewModelPostDetail model)
        {
            PostDetail entity = new PostDetail();
            entity.Id = model.Id;
            entity.Detail = model.Detail;
            entity.LanguageId = model.LanguageId;
            entity.PostId = model.PostId;
            entity.Subject = model.Subject;
            entity.Sumary = model.Subject;
            
            return entity;
        }
    }
}
